package org.getoffer.shortlink.project.service;


import org.getoffer.shortlink.project.common.convention.result.Result;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.MalformedURLException;
import java.net.ProtocolException;

/**
 * URL标题接口层
 */
public interface UrlTitleService {


    /**
     * 根据URL获取标题
     * @param url 目标网站地址
     * @return 网站标题
     */
    String getTitleByUrl(String url) throws MalformedURLException, ProtocolException;
}
